@extends('dashboard.base')

@section('content')
<div class="card-header"><a href="{{route('admin.delivery.create')}}" class="btn btn-square  btn-info active">添加</a></div>
<table class="table table-responsive-sm">
      <thead>
        <tr>
          <th>名称</th>
          <th>是否启用</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
      @foreach($datas as $v)
        <tr>
          <td>{{ $v->name }}</td>
          <td>{{ $v->enabled?'已启用':'未启用' }}</td>
          <td><a href="{{ route('admin.delivery.edit', $v) }}">修改</a>|<a href="javascript:;" data-url="{{route('admin.delivery.destroy', $v)}}">删除</td>
        </tr>
      @endforeach
      </tbody>
    </table>
@endsection